package com.gxa.modules.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 作者 yuanqiufeng
 * Date 2022/11/16
 */
@Data
public class MedicineDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("药物明细表的id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("药物的id")
    @TableField("medicine_id")
    private Integer medicineId;

    @ApiModelProperty("药物数量")
    @TableField("count")
    private Integer count;

    @ApiModelProperty("药物合计费用")
    @TableField("total")
    private Double total;


    @ApiModelProperty("药品的名字")
    @TableField("name")
    private String name;

    @ApiModelProperty("药品的单价")
    @TableField("price")
    private Double price;

    @ApiModelProperty("药品的类型0:西药1：中药")
    @TableField("type")
    private Integer type;

}
